package com.icangya.domain;


import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_usermood")
public class FbUsermood {

    //主键id
    private Long id;

    //创建的时间
    private Timestamp createTime;

    //说说的文本
    private String conntent;

    //用户头像
    private String userHeadimg;

    //用户名称
    private String userName;

    //说说的首图（展示图）
    private String contentImg;

    //用户的openid
    private String userOpenid;


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "content")
    public String getConntent() {
        return conntent;
    }

    public void setConntent(String conntent) {
        this.conntent = conntent;
    }

    @Basic
    @Column(name = "user_headimg")
    public String getUserHeadimg() {
        return userHeadimg;
    }

    public void setUserHeadimg(String userHeadimg) {
        this.userHeadimg = userHeadimg;
    }

    @Basic
    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Basic
    @Column(name = "content_img")
    public String getContentImg() {
        return contentImg;
    }

    public void setContentImg(String contentImg) {
        this.contentImg = contentImg;
    }

    @Basic
    @Column(name = "user_openid")
    public String getUserOpenid() {
        return userOpenid;
    }

    public void setUserOpenid(String userOpenid) {
        this.userOpenid = userOpenid;
    }

    @Override
    public String toString() {
        return "FbUsermood{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", conntent='" + conntent + '\'' +
                ", userHeadimg='" + userHeadimg + '\'' +
                ", userName='" + userName + '\'' +
                ", contentImg='" + contentImg + '\'' +
                ", userOpenid='" + userOpenid + '\'' +
                '}';
    }

    public FbUsermood() {
    }

    public FbUsermood(Timestamp createTime, String conntent, String userHeadimg, String userName, String contentImg, String userOpenid) {
        this.createTime = createTime;
        this.conntent = conntent;
        this.userHeadimg = userHeadimg;
        this.userName = userName;
        this.contentImg = contentImg;
        this.userOpenid = userOpenid;
    }
}
